package weixinkeji.dev.dc.base.scheme.promotions.check;

import sys.wx.c.components.check.CheckService;
import sys.wx.c.components.check.bean.CheckData;

public class PromotionDayCheck {

    public CheckData doPromotionDay(boolean id_must) {//如果是添加操作id还没产生，所以用变量。
        CheckData cd = CheckService.getCheckData();
        cd
                .put("promotion_id", CheckData.ID, id_must)
                .put("promotion_date", CheckData.DATA, true)
                .put("promotion_price", CheckData.NUMBER, true)
                .put("promotion_number", CheckData.NUMBER, true)
                .put("promotion_now_number", CheckData.NUMBER, true)
                .put("food_id", CheckData.ID, true)
                .put("food_name", CheckData.TEXT_L + "{1,26}", true)
                .put("food_code", CheckData.TEXT_L + "{1,26}", true)
                .put("food_price", CheckData.NUMBER, true)
                .put("food_img", CheckData.TEXT_L + "{1,255}", false)
                .put("unit_id", CheckData.ID, true)
                .put("unit_name", CheckData.TEXT_L + "{1,50}", true);
        return cd;
    }
}
